using System;
using System.ComponentModel.DataAnnotations;
using TiaoTaoHelper.Wtm.Models;
using WalkingTec.Mvvm.Core;

namespace HengTong.Model.Db.Other
{
    /// <summary>
    /// 访客事由
    /// </summary>
    public class SysVisitorReason : BasePoco
    {
        [Required]
        [Display(Name = "事由名称", Description = "访客事由名称", GroupName = "访客事由")]
        [StringLength(128)]
        public string ReasonName { get; set; }

        [Display(Name = "所属部门ID", Description = "关联的部门ID", GroupName = "访客事由")]
        public Guid? GroupId { get; set; }

        [Display(Name = "所属部门", Description = "关联的部门", GroupName = "访客事由")]
        public SysGroup Group { get; set; }
        
        [Display(Name = "是否有效", Description = "是否有效", GroupName = "访客事由")]
        public bool IsActive { get; set; }
    }
}